﻿using System;
using System.Collections.Generic;
using Axial;
using Axial.DOM;

namespace AxialWeb
{
	public partial class WebServiceClient : System.Web.UI.Page
	{
		public void Button()
		{
			new WebServiceProxy.WebService().JSCall("HelloWorld", ChangeTheLabel, AlertIt);
		}
		public void Greet()
		{
			new WebServiceProxy.WebService().JSCall("Hello", ChangeTheLabel, AlertIt, txtName.Text);
		}
		public void AddOne()
		{
			new WebServiceProxy.WebService().JSCall("AddOne", ChangeTheLabel, AlertIt, 3);
		}
		public void Combine()
		{
			new WebServiceProxy.WebService().JSCall("Combine", ChangeTheLabel, AlertIt, "a", "b");
		}

		public void ChangeTheLabel(object o)
		{
			lblResponse.Text = o.ToString();
		}
		public void AlertIt(object o)
		{
			Window.Alert(o.ToString());
		}
	}
}
